package com.share.beta.config.loadconfig;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置文件处理推荐这种
 */
@Data
@Component
@PropertySource("system.properties")
@ConfigurationProperties(prefix = "root")
public class LoadPropertiesV1 {
    private String url;
}
